<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>
	
<div class="list_order">
	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		class="table_order">
		<tr>
			<th width="100px;">
				<fmt:message key="salesOrder.orderNo" />
			</th>
			<th width="120px;">
				<fmt:message key="salesOrder.createTime" />
			</th>
			<th width="100px;">
				<fmt:message key="salesOrder.totalAmount" />
			</th>
			<th width="80px;">
				<fmt:message key="salesOrder.paymentStatus" />
			</th>
			<th width="80px;">
				<fmt:message key="salesOrder.shipmentStatus" />
			</th>
			<th width="100px;">
				<fmt:message key="salesOrder.orderStatus" />
			</th>
			<th>
				<fmt:message key="common.management" />
			</th>
		</tr>
		<c:forEach var="order" items="${orderList}" varStatus="status">
			<tr class="${(status.index%2==0)?'even':'odd'}">
				<td>
					<a href="${ctxPath}/customer/csOrders.html?doAction=viewOrder&orderNo=${order.orderNo}">${order.orderNo}</a>
				</td>
				<td>
					<fmt:formatDate value="${order.createTime}"	pattern="yyyy-MM-dd HH:mm" />
				</td>
				<td>
					<common:currencyFormat value="${order.totalAmount}" />
				</td>
				<td>
					<fmt:message key="salesOrder.paymentStatus.${order.paymentStatus}" />
				</td>
				<td>
					<fmt:message key="salesOrder.shipmentStatus.${order.shipmentStatus}" />
				</td>
				<td>
					<fmt:message key="salesOrder.orderStatus.${order.orderStatus}" />
				</td>
				<td>
					<c:if test="${order.onlineUnAllPaid}">
						<a href="${ctxPath}/checkout/checkout.html?doAction=selectOnlinePayment&orderNo=${order.orderNo}"><fmt:message key="salesOrder.payment.online" /> </a>
						&nbsp;
					</c:if>
					<c:if test="${order.cancelByCustomerEnabled}">
						<a href="${ctxPath}/customer/csOrders.html?doAction=toCancel&orderNo=${order.orderNo}"><fmt:message key="salesOrder.cancel.label" /> </a>
					</c:if>
				</td>
			</tr>
		</c:forEach>
		<c:if test="${empty orderList}">
			<tr>
				<td colspan="7">
					<fmt:message key="csIndex.orderIsEmpty" />
				</td>
			</tr>
		</c:if>
	</table>
</div>
<div class="page_bottom clearfix">
	<div class="pagination">
		<%@ include file="../../common/pagingOnly.jsp"%>
	</div>
</div>

<%--------保存查询条件 -------%>
<%@include file="orderSearchCriteriaStorage.jspf"%>


